{if condition="$ad.type eq 0"}
    <div style="line-height:0;">
        <a href="{$ad['ad']['link_url']}" > <img src="/uploads/images/{$ad.ad.images}" width="100%">   </a>
    </div>
{else}
        <div id="scrollimg" class="scrollimg">
        <div class="bd">
            <ul>
                {foreach name="$ad['ad']" id="v"}
                    <li><a href="{$v.link_url}" ><img src="/uploads/images/{$v.images}" width="100%" /></a></li>
                {/foreach}
            </ul>
        </div>
        <div class="hd">
            <ul></ul>
        </div>
        </div>
        <script type="text/javascript">
            TouchSlide({
                slideCell:"#scrollimg",
                titCell:".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
                mainCell:".bd ul",
                effect:"leftLoop",
                autoPage:true,//自动分页
                autoPlay:true //自动播放,
            });
</script>


{/if}